package dk.twu.analyzer.model;

import java.io.Serializable;

/**
 * Created by TW on 12/13/2014.
 */
public class Exchange implements Serializable{
    private final String code;
    private final String name;
    private final Country country;
    private final Currency currency;
    private final boolean isIntraDay;

    public Exchange(String code, String name, Country country, Currency currency, boolean isIntraDay) {
        this.code = code;
        this.name = name;
        this.country = country;
        this.currency = currency;
        this.isIntraDay = isIntraDay;
    }


    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public Country getCountry() {
        return country;
    }

    public Currency getCurrency() {
        return currency;
    }

    public boolean isIntraDay() {
        return isIntraDay;
    }

    @Override
    public String toString() {
        return "Exchange{" +
                "code='" + code + '\'' +
                ", name='" + name + '\'' +
                ", country=" + country +
                ", currency=" + currency +
                ", isIntraDay=" + isIntraDay +
                '}';
    }
}
